package com.lanou.elh.sysmanage.authority_management.mapper;

import com.lanou.elh.sysmanage.authority_management.entity.Permission;
import com.lanou.elh.sysmanage.authority_management.entity.RolePerm;
import com.lanou.elh.sysmanage.authority_management.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Set;

@Mapper
public interface UserMapper {
    User selectUnameAndPwd(User user);

    User selectUserByUserName(String username);

    User findById(Integer id);

    RolePerm finPerIdByRoleId(Integer roleId);

    List<Permission> findPerbyPerId(Integer permissionId);

    String findRolesByUsername(String username);

    Set<String> findPermissionsByusername(String username);
}
